package ex;

public class EX8 {
    public static void main(String[] args) {
        String inputValue = "692116851128";
        int evenSum=0,oddSum=0;
        for (int i =1;i<inputValue.length();i+=2){
            int even=inputValue.charAt(i)-'0';
            evenSum+=even;
        }
        System.out.println(evenSum);
        for (int i =0;i<inputValue.length();i+=2){
            int odd=inputValue.charAt(i)-'0';
            oddSum+=odd;
        }
        System.out.println(oddSum);
        int cc=oddSum+evenSum*3;
        int cc1=(10-cc%10)%10;
        System.out.println(cc1);


    }
}
